package chapter05;import java.lang.reflect.Field;public class main {    public static void main(String[] args) {        Employee e1 = new Employee("张三",18,5000);        Manager m2 = new Manager("李四",18,5000,500);        Class cl = m2.getClass();        Class supercl = cl.getSuperclass();        try {            Field f = supercl.getDeclaredField("name");            f.setAccessible(true);            Object v = f.get(e1);            System.out.println(v);        }catch (Exception e)        {            System.out.println("catch");        }    }}